/*
 *  animation_manager.h
 *  wonderland-project
 *
 *  Created by Ben Nolan on 20/10/08.
 *  Copyright 2008 Nolan Consulting Limited. All rights reserved.
 *
 */

#include <OgreFrameListener.h>
#include <list>
namespace Ogre { class SceneManager; }
namespace Ogre { class AnimationState; }

class Region;

namespace Wonderland{

class AnimationManager : public Ogre::FrameListener{
  public:
    AnimationManager(Ogre::SceneManager *scene_manager);

    bool AnimationManager::frameStarted(const Ogre::FrameEvent &evt);
  
    void addAnimation(Ogre::AnimationState *);
    void removeAnimation(Ogre::AnimationState *);
    
  protected:
    Ogre::SceneManager *scene_manager_;
    std::list<Ogre::AnimationState *>animations_;

};

}